//
//  TTDiamondViewCell.h
//  TaoTuo
//
//  Created by admin on 2019/8/23.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TTDiamondModel.h"
@class TTDiamondViewCell;

typedef enum : NSUInteger {
    CllTypeWithCanChoose,       // 可选中的
    CllTypeWithShowView,        // 仅仅是展示用的
} CllType;

@protocol TTDiamondViewCellDelegate <NSObject>

@optional
// 查看证书
- (void)clickVerifyBtnWithDiamondViewCell:(TTDiamondViewCell *_Nullable)cell certificateUrlString:(NSString *_Nullable)urlString;

/// 点击选中cell
- (void)clickSelectCellWithDiamondViewCell:(TTDiamondViewCell * _Nullable)cell button:(UIButton * _Nullable)button model:(TTDiamondModel * _Nullable)model;

// 点击购物车
- (void)clickShopCartWithDiamondViewCell:(TTDiamondViewCell * _Nullable)cell button:(UIButton * _Nullable)button model:(TTDiamondModel * _Nullable)model;

// 点击选择按钮
- (void)clickSelectLuoshiButtonWithDiamondViewCell:(TTDiamondViewCell * _Nullable)cell button:(UIButton * _Nullable)button model:(TTDiamondModel * _Nullable)model;

@end

NS_ASSUME_NONNULL_BEGIN

@interface TTDiamondViewCell : UITableViewCell

@property (nonatomic, assign) id<TTDiamondViewCellDelegate> delegate;

///最后一个参数是否显示折扣
- (void)setModel:(TTDiamondModel * _Nonnull)model clarityCharacteristicsDic:(NSDictionary *)dic toTimeDic:(NSDictionary *)toTimeDic findShapeImageDic:(NSDictionary *)ShapeImageDic cellType:(CllType)cellType showDiscount:(BOOL)showDiscount;

///最后一个参数是否是更换裸石来的
- (void)setModel:(TTDiamondModel * _Nonnull)model clarityCharacteristicsDic:(NSDictionary *)dic toTimeDic:(NSDictionary *)toTimeDic findShapeImageDic:(NSDictionary *)ShapeImageDic cellType:(CllType)cellType showDiscount:(BOOL)showDiscount isExchangeLuoshi:(BOOL)isExchangeLuoshi;

@end

NS_ASSUME_NONNULL_END
